package club.zhangliyuanblog.service;

import org.springframework.stereotype.Component;

/**
 * @author liyuan.zhang
 * @date 2021/4/23 22:35
 */
@Component
public class PaymentFallBackService implements PaymentHystrixService{
    @Override
    public String paymentOk(Integer id) {
        return "调用方法为paymentOk，上游服务宕机┭┮﹏┭┮";
    }

    @Override
    public String timeout(Integer time) {
        return "调用方法为timeout，上游服务宕机┭┮﹏┭┮";
    }
}
